package com.link.base.base.wechat.dao.mybatis.mapper;

import com.link.base.base.wechat.model.WxImage;
import com.link.core.basic.dao.mapper.BasicMapper;

/**
 * 图片素材
 *
 * @author 路江
 * @date 2018-05
 */
public interface WxImageMapper extends BasicMapper<WxImage> {

    /**
     * 通过本地图片url查询图片上传到微信后的url
     *
     * @author lujiang
     * @date 2019-06-03
     * @param wxImage
     * @return
     * @throws Exception
     */
    WxImage querybyUrl(WxImage wxImage) throws Exception;

    /**
     * 通过本地图片url查询图片信息
     *
     * @author lujiang
     * @date 2019-06-03
     * @param image
     * @return
     * @throws Exception
     */
    WxImage queryByImage(WxImage image) throws Exception;
}
